package designPattern.decorator;

public class ConcreteDecoratorListen extends Decorator {

	protected ConcreteDecoratorListen(Component component) {
		super(component);
	}

	/**商业逻辑，对原始构件功能的扩展*/
    public void go() {    
        listen("听音乐");//执行扩展功能
        super.go();
    }
   
    private void listen(Object obj){
        System.out.println(obj);       
    }
}
